package com.ruoyi.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 结算管理对象 t_cw_clearing
 * 
 * @author ruoyi
 * @date 2023-03-07
 */
public class TCwClearing extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 自增 */
    private Long id;

    /** 商户ID */
    @Excel(name = "商户ID")
    private Long businessId;

    /** 商户名称 */
    @Excel(name = "商户名称")
    private String businessName;

    /** 对账年月日(yyyymmdd) */
    @Excel(name = "对账年月日(yyyymmdd)")
    private String checkDay;

    /** 结算的对账批次ID */
    @Excel(name = "结算的对账批次ID")
    private Long checkBatchId;

    /** 结算的对账批次号（yyyymmdd001） */
    @Excel(name = "结算的对账批次号", readConverterExp = "y=yyymmdd001")
    private String checkBatchNo;

    /** 结算的对账批次明细ID */
    @Excel(name = "结算的对账批次明细ID")
    private Long checkBatchDetailId;

    /** 交易流水号，支付订单的支付订单号 */
    @Excel(name = "交易流水号，支付订单的支付订单号")
    private String payOrderNo;

    /** 渠道名称(拉卡拉账单类型) 1:代付（提现），2：快捷，3：微信，4：支付宝 */
    @Excel(name = "渠道名称(拉卡拉账单类型) 1:代付", readConverterExp = "提=现")
    private Long billType;

    /** 对账确认时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "对账确认时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkConfirmDate;

    /** 结算金额（对账的订单金额） */
    @Excel(name = "结算金额", readConverterExp = "对=账的订单金额")
    private BigDecimal amount;

    /** 交易日期（对账明细里面的交易日期，也即渠道支付日期） */
    @Excel(name = "交易日期", readConverterExp = "对=账明细里面的交易日期，也即渠道支付日期")
    private Date tradeDateZf;

    /** 结算确认状态（1：未确认，2：已确认） */
    @Excel(name = "结算确认状态", readConverterExp = "1=：未确认，2：已确认")
    private Long clearingConfirmState;

    /** 结算确认人 */
    @Excel(name = "结算确认人")
    private Long clearingConfirmUserId;

    /** 结算确认时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结算确认时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date clearingConfirmDate;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private BigDecimal reserve1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private Long reserve2;

    /** 预留字段3 */
    @Excel(name = "预留字段3")
    private String reserve3;

    /** 预留字段4 */
    @Excel(name = "预留字段4")
    private String reserve4;

    /** 预留字段5 */
    @Excel(name = "预留字段5")
    private String reserve5;

    /** 删除标识,0:未删除，1：删除 */
    @Excel(name = "删除标识,0:未删除，1：删除")
    private Integer delFlg;

    /** 创建用户ID */
    @Excel(name = "创建用户ID")
    private Long createUserid;

    /** 更新用户ID */
    @Excel(name = "更新用户ID")
    private Long updateUserid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBusinessId(Long businessId) 
    {
        this.businessId = businessId;
    }

    public Long getBusinessId() 
    {
        return businessId;
    }
    public void setBusinessName(String businessName) 
    {
        this.businessName = businessName;
    }

    public String getBusinessName() 
    {
        return businessName;
    }
    public void setCheckDay(String checkDay) 
    {
        this.checkDay = checkDay;
    }

    public String getCheckDay() 
    {
        return checkDay;
    }
    public void setCheckBatchId(Long checkBatchId) 
    {
        this.checkBatchId = checkBatchId;
    }

    public Long getCheckBatchId() 
    {
        return checkBatchId;
    }
    public void setCheckBatchNo(String checkBatchNo) 
    {
        this.checkBatchNo = checkBatchNo;
    }

    public String getCheckBatchNo() 
    {
        return checkBatchNo;
    }
    public void setCheckBatchDetailId(Long checkBatchDetailId) 
    {
        this.checkBatchDetailId = checkBatchDetailId;
    }

    public Long getCheckBatchDetailId() 
    {
        return checkBatchDetailId;
    }
    public void setPayOrderNo(String payOrderNo) 
    {
        this.payOrderNo = payOrderNo;
    }

    public String getPayOrderNo() 
    {
        return payOrderNo;
    }
    public void setBillType(Long billType) 
    {
        this.billType = billType;
    }

    public Long getBillType() 
    {
        return billType;
    }
    public void setCheckConfirmDate(Date checkConfirmDate) 
    {
        this.checkConfirmDate = checkConfirmDate;
    }

    public Date getCheckConfirmDate() 
    {
        return checkConfirmDate;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setTradeDateZf(Date tradeDateZf) 
    {
        this.tradeDateZf = tradeDateZf;
    }

    public Date getTradeDateZf() 
    {
        return tradeDateZf;
    }
    public void setClearingConfirmState(Long clearingConfirmState) 
    {
        this.clearingConfirmState = clearingConfirmState;
    }

    public Long getClearingConfirmState() 
    {
        return clearingConfirmState;
    }
    public void setClearingConfirmUserId(Long clearingConfirmUserId) 
    {
        this.clearingConfirmUserId = clearingConfirmUserId;
    }

    public Long getClearingConfirmUserId() 
    {
        return clearingConfirmUserId;
    }
    public void setClearingConfirmDate(Date clearingConfirmDate) 
    {
        this.clearingConfirmDate = clearingConfirmDate;
    }

    public Date getClearingConfirmDate() 
    {
        return clearingConfirmDate;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setReserve1(BigDecimal reserve1) 
    {
        this.reserve1 = reserve1;
    }

    public BigDecimal getReserve1() 
    {
        return reserve1;
    }
    public void setReserve2(Long reserve2) 
    {
        this.reserve2 = reserve2;
    }

    public Long getReserve2() 
    {
        return reserve2;
    }
    public void setReserve3(String reserve3) 
    {
        this.reserve3 = reserve3;
    }

    public String getReserve3() 
    {
        return reserve3;
    }
    public void setReserve4(String reserve4) 
    {
        this.reserve4 = reserve4;
    }

    public String getReserve4() 
    {
        return reserve4;
    }
    public void setReserve5(String reserve5) 
    {
        this.reserve5 = reserve5;
    }

    public String getReserve5() 
    {
        return reserve5;
    }
    public void setDelFlg(Integer delFlg) 
    {
        this.delFlg = delFlg;
    }

    public Integer getDelFlg() 
    {
        return delFlg;
    }
    public void setCreateUserid(Long createUserid) 
    {
        this.createUserid = createUserid;
    }

    public Long getCreateUserid() 
    {
        return createUserid;
    }
    public void setUpdateUserid(Long updateUserid) 
    {
        this.updateUserid = updateUserid;
    }

    public Long getUpdateUserid() 
    {
        return updateUserid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("businessId", getBusinessId())
            .append("businessName", getBusinessName())
            .append("checkDay", getCheckDay())
            .append("checkBatchId", getCheckBatchId())
            .append("checkBatchNo", getCheckBatchNo())
            .append("checkBatchDetailId", getCheckBatchDetailId())
            .append("payOrderNo", getPayOrderNo())
            .append("billType", getBillType())
            .append("checkConfirmDate", getCheckConfirmDate())
            .append("amount", getAmount())
            .append("tradeDateZf", getTradeDateZf())
            .append("clearingConfirmState", getClearingConfirmState())
            .append("clearingConfirmUserId", getClearingConfirmUserId())
            .append("clearingConfirmDate", getClearingConfirmDate())
            .append("remarks", getRemarks())
            .append("reserve1", getReserve1())
            .append("reserve2", getReserve2())
            .append("reserve3", getReserve3())
            .append("reserve4", getReserve4())
            .append("reserve5", getReserve5())
            .append("delFlg", getDelFlg())
            .append("createUserid", getCreateUserid())
            .append("createTime", getCreateTime())
            .append("updateUserid", getUpdateUserid())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
